<?php
	class ActivityModel extends CI_Model{
	
		var $txt_nombre = "";
		var $txt_ubicacion = "";
		var $txt_fecha = "";
		var $txt_duracion = "";
		var $txt_precio = "";
		var $txt_descripcion = "";
		
		function Register(){
			parent::__construct();
		}
		
	function getActivities()
	{		
		$query = $this->db->query("SELECT * FROM activity");
		if($query->num_rows()>0) {
			foreach ($query->result_array() as $row)
			{
				$activities[] = $row;
			}
		}
		
		return $activities;
	}
		
	}
	